#pragma once
#include "../Common.h"
#include "../TimeLine/ShotCutTimeLine.h"
#include "../Clip/ShotCutClip.h"

class ShotCutWriter
{
public:
    ShotCutWriter(ShotCutTimeLine* VideoTimeLine);
    ~ShotCutWriter();
    void RenderToFile(std::string FileName);
    
private:
    FFmpegWriter* VideoWriter = nullptr;
    ShotCutTimeLine* WriteTimeLine = nullptr;

    struct CaptionInfo
    {
        long int CaptionPositionFrame= 0;
        std::shared_ptr<Caption> caption;
    };
    std::vector<CaptionInfo> Captions;
};